Skip to content

feat: make release/build pipeline Option-B-safe - #34

Merged
NimaShafie merged 1 commit into
mainfrom
feat/optionb-release-pipeline
Dec 4, 2026
Merged

NimaShafie merged 1 commit into
mainfrom
feat/optionb-release-pipeline

Conversation

@NimaShafie

Copy link
Copy Markdown
Collaborator

Why

Follow-up to the Option-B CI fix (#32): the release and LLVM-build
pipelines still assumed tool binaries lived in git. Under Option B the prebuilt/
submodule is manifests-only and binaries live in each release's assets, so a naive
tool-update release would either (a) ship a tag with no artifacts — fetch-artifacts.sh
404s — or (b) re-bloat the slimmed repo. This makes the pipeline Option-B-safe so the
pending tool bumps (issue #24) can be released cleanly.

What

  • release.sh — after creating the GitHub release, publishes the prebuilt tool
    artifacts to the tag via publish-artifacts.sh --gh (opt out with --skip-artifacts).
    First runs the new completeness gate and refuses to publish an incomplete tag.
  • check-prebuilt-artifacts.sh (new) — on-disk completeness check; companion to the
    checksum-only check-prebuilt-manifests.sh. Used by release.sh (and usable before
    build-bundle.sh) so a manifests-only/partial tree can't ship.
  • build-llvm-linux.yml — the commit job now commits manifest-only to prebuilt/
    and ships the split parts as the llvm-linux-parts-<ver> workflow artifact, so CI-built
    LLVM variants no longer land in git. (The musl/sqlite build workflows already upload
    workflow artifacts only.)
  • smoke-test.yml — refresh the stale "prebuilt must contain archives" header comment.

Release flow (also documented locally in CLAUDE.md): hydrate prebuilt/ from the previous
tag with fetch-artifacts.sh, overlay the version's new stagings, then release.sh verifies
completeness and publishes the whole set to the new tag.

Note: the build-llvm-linux.yml change cannot be exercised without a ~90-min build run;
it is a mechanical commit-job change (manifest-only + artifact upload) and should be
validated on the next real LLVM bump.

Validated: ci/lint.sh clean; release.sh/check-prebuilt-artifacts.sh syntax OK;
check-prebuilt-artifacts.sh correctly flags the current manifests-only tree (338 absent).

🤖 Generated with Claude Code

Under Option B the prebuilt submodule is manifests-only and tool binaries live
in each release's assets (fetch-artifacts.sh rehydrates + verifies them). The
release and LLVM-build pipelines still assumed binaries were in git, so a naive
tool-update release would either ship a tag with no artifacts (fetch 404s) or
re-bloat the slimmed repo.

- release.sh: after creating the GitHub release, publish the prebuilt tool
  artifacts to the tag via publish-artifacts.sh --gh (opt out with
  --skip-artifacts). First verifies prebuilt/ holds the complete declared set
  with the new check-prebuilt-artifacts.sh, and refuses to publish an incomplete
  tag (prevents shipping a release that cannot install).
- check-prebuilt-artifacts.sh: new on-disk completeness check (companion to the
  checksum-only check-prebuilt-manifests.sh) for publishers/bundlers.
- build-llvm-linux.yml: the commit job now commits MANIFEST ONLY to prebuilt git
  and ships the split parts as the llvm-linux-parts-<ver> workflow artifact, so
  CI-built LLVM variants no longer land in git. (The musl/sqlite build workflows
  already only upload workflow artifacts.)
- smoke-test.yml: refresh the stale "prebuilt must contain archives" header.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@NimaShafie
NimaShafie merged commit 2f8a7dc into main Dec 4, 2026
4 checks passed
@NimaShafie
NimaShafie deleted the feat/optionb-release-pipeline branch December 4, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant